Crate three_d_asset

source ·
Expand description

A set of common assets that are useful when doing graphics, for example TriMesh, Texture2D or PbrMaterial. These assets can be loaded using the io module or constructed manually. When in memory, the assets can be for example be

  • visualised, for example using the three-d crate or in a CPU ray tracer
  • imported into a rust-based game engine
  • edited and saved again

Re-exports

pub use crate::prelude::*;
pub use texture::*;
pub use material::*;
pub use geometry::*;
pub use volume::*;

Modules

Contain geometry asset definitions.
Contains functionality to load any type of asset runtime as well as parsers for common 3D assets. Also includes functionality to save data which is limited to native.
Contain material asset definitions.
Contain the basic types used by the 3D specific data types. Mostly basic math functionality which is an re-export of cgmath.
Contain texture asset definitions.
Contain volume asset definitions.

Structs

Represents a camera used for viewing 3D assets.
Model consisting of a set of geometries and materials. The geometries might have a material name that matches a name of a material in the list of materials. Also, the same material can be applied to several geometries.
Defines the part of the screen/render target that is rendered to. All values should be given in physical pixels.

Enums

Error from this crate.
The type of projection used by a camera (orthographic or perspective) including parameters.

Type Definitions

A result for this crate.